package com.hellobike.haxing.modules.wms.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.hellobike.haxing.modules.wms.dto.ExportStockPickDto;
import com.hellobike.haxing.modules.wms.dto.StockPickDto;
import com.hellobike.haxing.modules.wms.entity.StockPick;

import java.math.BigDecimal;
import java.util.List;

/**
 * @Description: t_wms_stock_pick
 * @Author: haxing-boot
 * @Date:   2020-01-15
 * @Version: V1.0
 */
public interface IStockPickService extends IService<StockPick> {

    StockPick getByStkBatchLocId(Long fmStockId);

    boolean addStock(Long id, BigDecimal qty);

    List<StockPick> getBySkuId(Long skuId);

    boolean subStock(Long id, BigDecimal qty);

    IPage<StockPickDto> pageByStockPickDto(Page<StockPickDto> page, StockPickDto stockPick);

    List<ExportStockPickDto> exportStockPick(StockPickDto stockPick);
}
